package com.CuiChangHe.studentmanager.controller;

import com.CuiChangHe.studentmanager.entity.studentdetailedinfo.StudentDetailedInfoReturnMsg;
import com.CuiChangHe.studentmanager.service.studentdetailedinfo.StudentDetailedInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description :学生详细信息Controller
 * @Author :
 * @Date : 2021/11/18
 */
@RestController
public class StudentInfoController {

    private StudentDetailedInfoService service;

    @Autowired
    public void setService(StudentDetailedInfoService service) {
        this.service = service;
    }

    @GetMapping("/student/detailed/info/{studentid}")
    StudentDetailedInfoReturnMsg findStudentDetailedInfoByStudentId(@PathVariable String studentid){
        return service.findStudentDetailedInfoByStudentId(studentid);
    }

}
